package com.example.swaggerproject.controller;

import com.example.swaggerproject.entity.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloController {

    @GetMapping("/swagger")
    public Result<String> hello() {
        return Result.success("hello swagger");
    }

}
